package com.lzy.crm.base.util;

/**
 * 业务异常类,用于service中回滚
 *
 */
public class BusinessRuntimeException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	//业务错误
	public static final String DEFAULT_ERROR_MSG = "business.error";
	//数据插入异常
	public static final String SQL_ERROR_MSG = "SQLinsert.error";
	//异常信息
	private String message;
	
	public BusinessRuntimeException(String msg){
		super(msg);
		this.message=msg;
	}

	public String getMessage() {
		return message;
	}
}
